libxl: add support for FreeBSD uuid implementation
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 27 Jun 2014 14:06:28 +0000 (16:06 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 2 Jul 2014 14:53:12 +0000 (15:53 +0100)
commit18b102a93341cd6c29ca97bcebbd19d3ae697771
tree23e49533c22f1c9bb9daaf7ff997ed7f6a0fb347
parentc3ca69575ea934247cd6b0ccfcb9b5dfd029d5a2
libxl: add support for FreeBSD uuid implementation

Add the FreeBSD specific uuid implementation. Since uuid_t is not
defined as an array, but as a struct on FreeBSD, use a union with a
array in order to be able to return the uuid as a bytearray.

Also, added a libxl internal compile time assert macro, that is used
to assert that the size of uuid_t is the same as the union used in
libxl.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_internal.h
tools/libxl/libxl_uuid.c
tools/libxl/libxl_uuid.h